home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / bit / help / pixtran.hlp < prev    next >
Text File  |  1994-08-01  |  3KB  |  96 lines

  1.  
  2. @C1@c@b@_ Pixel Transformation
  3.  
  4.     Perform arbitrary 1-to-1 pixel transformations. The transformation
  5.     can be applied to RGB separately or simultaneously and to the entire
  6.     image or a rectangular region of it.
  7.  
  8.     The transformation is defined by three (representing RGB) XY plots,
  9.     whose horizontal axes are the input pixel values and the vertical axes
  10.     are the output pixel values.
  11.  
  12. @b Interaction
  13.     A transformation is altered by dragging the movable control points
  14.     shown as little squares on the transformation function plots.
  15.     The four buttons on the top right corner of the panel control to
  16.     which color channel the current transformation applies. Immediately
  17.     below is a counter that controls the number of movable points on the
  18.     transformation plots.
  19.     
  20.     Following buttons and shortcuts are available
  21.  
  22. @f  Invert
  23.      Replace every pixel by its compliments, i.e., photo-inversion.
  24.  
  25. @f  Steps
  26.      Primitive quantization by clustering pixels.
  27.  
  28. @f  Band 
  29.      Set alternating clusters of pixels to black.
  30.  
  31. @f  Threshold
  32.      Set the transformation to a 2-level step function.
  33.  
  34. @f  Upshift
  35.      Shift the current component(s) up one bit. No check for overflow is made.
  36.  
  37. @f  Dnshift
  38.      Shift the current component(s) down one bit.
  39.  
  40. @f  Reset
  41.      Set the current transformation to null, i.e., output(x) = input(x);
  42.  
  43. @f  Gamma
  44.      Gamma correction with allowable gamma range of 0.001 to 10.00.
  45.  
  46. @f  Brightness
  47.      Brightness can be changed either by absolute value (p += delta) or by
  48.      a percentage (p *= (1.0 + delta)). To switch, click the mouse on the
  49.      text "brightness".
  50.  
  51. @f  Constrast
  52.      Make dark pixel darker and bright pixels brighter
  53.  
  54. @f  Swap
  55.      Swap two pixel values, e.g., black and white
  56.  
  57. @f  Replace
  58.      Replace one pixel value with another
  59.  
  60. @f  Apply
  61.      Perform the current transformation and display the resulting image.
  62.  
  63. @f  Undo
  64.      Undo last transformation. Only one undo is allowed. 
  65.  
  66. @f  Done
  67.      Exit color editing mode.
  68.  
  69. @b Math Expressions
  70.      Arbitrary math expression can be entered by clicking on the MathExp
  71.      button. The built-in parser recognizes +-*/ and ^ (or **) operators
  72.      and some of the standard functions from libm.a.
  73.  
  74.      The math expression must be entered with x as the variable name,
  75.      such as (x+1)^2/4 (or if you like, y = x^2). The parser will use the
  76.      current x values ([0,1] inclusive) to evaluate the expression.
  77.  
  78. @f  built-in functions
  79. @f       cos, sin, acos, asin, tan, atan, deg, rad
  80. @f       sqrt, cbrt, abs, exp, log, log10
  81.  
  82. @s@b Note
  83.     1. In choosing the target or new pixel values in Swap & Change,
  84.        it is a good idea to use the Pixel-picking features of the
  85.        color selection (CNTL + leftmouse) because pixels might not
  86.        be what they appear to be (e.g., (1,0,0) and (0,0,0) look the
  87.        same to the eye).
  88.  
  89.     2. The transformation is additive, i.e., the transformation always
  90.        applies to the current image.
  91.     
  92.     3.  A bluish glass can be achieved by using a function that 
  93.         shifts red and green intensities down 2bits, or simple use the blue
  94.         intensities alone.  Similar tricks can be used to achieve greenish
  95.         glass etc.
  96.